home *** CD-ROM | disk | FTP | other *** search
-
-
-
- BBBB::::::::LLLLiiiinnnntttt((((3333)))) 22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222)))) BBBB::::::::LLLLiiiinnnntttt((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- B::Lint - Perl lint
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- perl -MO=Lint[,OPTIONS] foo.pl
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The B::Lint module is equivalent to an extended version of
- the ----wwww option of ppppeeeerrrrllll. It is named after the program lllliiiinnnntttt
- which carries out a similar process for C programs.
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS AAAANNNNDDDD LLLLIIIINNNNTTTT CCCCHHHHEEEECCCCKKKKSSSS
- Option words are separated by commas (not whitespace) and
- follow the usual conventions of compiler backend options.
- Following any options (indicated by a leading ----) come lint
- check arguments. Each such argument (apart from the special
- aaaallllllll and nnnnoooonnnneeee options) is a word representing one possible
- lint check (turning on that check) or is nnnnoooo----ffffoooooooo (turning off
- that check). Before processing the check arguments, a
- standard list of checks is turned on. Later options override
- earlier ones. Available options are:
-
- ccccoooonnnntttteeeexxxxtttt Produces a warning whenever an array is used in an
- implicit scalar context. For example, both of the
- lines
-
- $foo = length(@bar);
- $foo = @bar;
- will elicit a warning. Using an explicit B<scalar()> silences the
- warning. For example,
-
- $foo = scalar(@bar);
-
-
- iiiimmmmpppplllliiiicccciiiitttt----rrrreeeeaaaadddd and iiiimmmmpppplllliiiicccciiiitttt----wwwwrrrriiiitttteeee
- These options produce a warning whenever an
- operation implicitly reads or (respectively) writes
- to one of Perl's special variables. For example,
- iiiimmmmpppplllliiiicccciiiitttt----rrrreeeeaaaadddd will warn about these:
-
- /foo/;
-
- and iiiimmmmpppplllliiiicccciiiitttt----wwwwrrrriiiitttteeee will warn about these:
-
- s/foo/bar/;
-
- Both iiiimmmmpppplllliiiicccciiiitttt----rrrreeeeaaaadddd and iiiimmmmpppplllliiiicccciiiitttt----wwwwrrrriiiitttteeee warn about
- this:
-
- for (@a) { ... }
-
-
-
-
-
- Page 1 (printed 10/23/98)
-
-
-
-
-
-
- BBBB::::::::LLLLiiiinnnntttt((((3333)))) 22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222)))) BBBB::::::::LLLLiiiinnnntttt((((3333))))
-
-
-
- ddddoooollllllllaaaarrrr----uuuunnnnddddeeeerrrrssssccccoooorrrreeee
- This option warns whenever $_ is used either
- explicitly anywhere or as the implicit argument of a
- pppprrrriiiinnnntttt statement.
-
- pppprrrriiiivvvvaaaatttteeee----nnnnaaaammmmeeeessss
- This option warns on each use of any variable,
- subroutine or method name that lives in a non-
- current package but begins with an underscore ("_").
- Warnings aren't issued for the special case of the
- single character name "_" by itself (e.g. $_ and
- @_).
-
- uuuunnnnddddeeeeffffiiiinnnneeeedddd----ssssuuuubbbbssss
- This option warns whenever an undefined subroutine
- is invoked. This option will only catch explicitly
- invoked subroutines such as foo() and not indirect
- invocations such as &$subref() or $obj->meth(). Note
- that some programs or modules delay definition of
- subs until runtime by means of the AUTOLOAD
- mechanism.
-
- rrrreeeeggggeeeexxxxpppp----vvvvaaaarrrriiiiaaaabbbblllleeeessss
- This option warns whenever one of the regexp
- variables $', $& or $' is used. Any occurrence of
- any of these variables in your program can slow your
- whole program down. See the _p_e_r_l_r_e manpage for
- details.
-
- aaaallllllll Turn all warnings on.
-
- nnnnoooonnnneeee Turn all warnings off.
-
- NNNNOOOONNNN LLLLIIIINNNNTTTT----CCCCHHHHEEEECCCCKKKK OOOOPPPPTTTTIIIIOOOONNNNSSSS
- ----uuuu PPPPaaaacccckkkkaaaaggggeeee
- Normally, Lint only checks the main code of the
- program together with all subs defined in package
- main. The ----uuuu option lets you include other package
- names whose subs are then checked by Lint.
-
- BBBBUUUUGGGGSSSS
- This is only a very preliminary version.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Malcolm Beattie, mbeattie@sable.ox.ac.uk.
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 10/23/98)
-
-
-
-
-
-
- BBBB::::::::LLLLiiiinnnntttt((((3333)))) 22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222)))) BBBB::::::::LLLLiiiinnnntttt((((3333))))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3 (printed 10/23/98)
-
-
-
-
-
-
-